import request from '@/utils/request'

// 查询直接费用列表
export function listDirect(query) {
  return request({
    url: '/system/direct/list',
    method: 'get',
    params: query
  })
}

// 查询直接费用详细
export function getDirect(id) {
  return request({
    url: '/system/direct/' + id,
    method: 'get'
  })
}

// 新增直接费用
export function addDirect(data) {
  return request({
    url: '/system/direct',
    method: 'post',
    data: data
  })
}

// 修改直接费用
export function updateDirect(data) {
  return request({
    url: '/system/direct',
    method: 'put',
    data: data
  })
}

// 删除直接费用
export function delDirect(id) {
  return request({
    url: '/system/direct/' + id,
    method: 'delete'
  })
}
